package org.zjt.auth.MQ.activemq;

import org.apache.log4j.Logger;
import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

//@Component
public class ActiveMQMsgListener {
	
	private static final Logger log=Logger.getLogger(ActiveMQMsgListener.class);
	
	@JmsListener(destination="zhang-test")
	public void receiveMsg(String msg){
		log.info("接受到"+msg);
	}

}
